package com.example.consuldemo;

import com.example.consuldemo.config.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author 高枫
 */
@SpringBootApplication
@EnableDiscoveryClient
@RibbonClient(name = "mcroservice-payment", configuration = MySelfRule.class)
public class ConsulDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsulDemoApplication.class, args);
    }

}
